package cate.game.fight.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBFight;
import cate.game.role.Role;
import cate.game.role.fight.FuncPosition;
import easy.java.dev.note.NoteField;

import java.util.Map;

@ClientMsg(title = "获取玩家所有阵型配置 の 返回")
public class PositionListResp implements MsgOutput{

    @NoteField(value = "阵法配置",detail = "Map<功能id，具体的阵法配置>")
    public Map<Integer, FuncPosition> funcPositions;

    public PositionListResp(){}

    public PositionListResp(Role role) {
        this.funcPositions = role.getFight().funcPositions;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBFight.POSITION_LIST_RESP;
    }
}
